package com.ruoyi.standingbook.cleaning.domain.vo;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.tools.convert.ExcelOssDownloadConver;

import lombok.Data;



/**
 * 清扫保洁视图对象 tz_cleaning
 *
 * @author cc
 * @date 2023-04-26
 */
@Data
@ExcelIgnoreUnannotated
public class CleaningVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    //@ExcelProperty(value = "id")
    private Long id;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "erecord_item_name_list")
    private String itemName;

    /**
     * 服务种类
     */
    @ExcelProperty(value = "服务种类", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "erecord_service_type")
    private Integer serviceType;

    @ExcelIgnore
    private String serviceTypeName;

    /**
     * 片区名称
     */
    @ExcelProperty(value = "片区名称")
    private String areaName;

    /**
     * 道路名称
     */
    @ExcelProperty(value = "道路名称")
    private String street;

    /**
     * 级别
     */
    @ExcelProperty(value = "级别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "erecord_cleaning_level_type")
    private String level;

    /**
     * 起止点
     */
    @ExcelProperty(value = "起止点")
    private String endpoint;

    /**
     * 面积
     */
    @ExcelProperty(value = "面积")
    private Double area;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @DateTimeFormat(value = "yyyy/MM/dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 应该频率(次)
     */
    @ExcelProperty(value = "应该频率(次)")
    private Integer frequency;

    /**
     * 实际频率(次)
     */
    @ExcelProperty(value = "实际频率(次)")
    private Integer actualFrequency;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ercord_finish_status")
    private String status;

    /**
     * 现场完成前照片
     */
    @ExcelProperty(value = "现场完成前照片", converter = ExcelOssDownloadConver.class)
    private String pic1;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic1")
    private String pic1Url;
    /**
     * 现场完成后照片
     */
    @ExcelProperty(value = "现场完成后照片", converter = ExcelOssDownloadConver.class)
    private String pic2;

    @Translation(type = TransConstant.OSS_ID_TO_URL , mapper = "pic2")
    private String pic2Url;
    /**
     * 备注
     */
    //@ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建日期
     */
    //@ExcelProperty(value = "创建日期")
    private Date createTime;

    /**
     * 创建人
     */
    //@ExcelProperty(value = "创建人")
    private String createBy;


}
